package com.ai.wx.context;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ai.wx.quartz.Quartz;

@Component
public class WXApplicationInitializingBean implements InitializingBean{

	@Autowired
	private Quartz quartz;
	
	@Override
	public void afterPropertiesSet() throws Exception { 
		quartz.updateAccessToken();
	}
	 
}